package com.lgq.lgqbackend.controller;

import com.lgq.lgqbackend.exception.ErrorCode;
import com.lgq.lgqbackend.exception.ThrowUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class  HelloController {

    @GetMapping("/hello")
    public String sayHello() {
        ThrowUtils.throwIf(1!=2, ErrorCode.PARAMS_ERROR,"不可能成立");
        return "Hello World!";
    }


}
